#ifndef BEGIN_END_H
#define BEGIN_END_H

template <typename T, unsigned N>
// error C2234: “arr”: 引用数组是非法的,(&arr即可)
T* begin(const T (&arr)[N]) {
  return arr;
}

template <typename T, unsigned N>
T* end(const T (&arr)[N]) {
  return arr + N;
}

#endif  // BEGIN_END_H